import {get, post, del, put} from "@/apis/http/request";
import {ProxyMechanism} from "@/apis/model/proxy/ProxyMechanismModel";

/**
* 得到列表
* @param params
*/
export const getProxyMechanismList = (params: any) => get("/proxyMechanism/list", params)

/**
* 得到分页列表
* @param params
*/
export const proxyMechanismPage = (params: any) => post("/proxyMechanism/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteProxyMechanismById = (id: number) => del("/proxyMechanism/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertProxyMechanism = (param: ProxyMechanism) => post("/proxyMechanism", param)

/**
* 更新数据
* @param param
*/
export const updateProxyMechanism = (param: ProxyMechanism) => put("/proxyMechanism", param)